import request from './request.js'

export function getSwiper () {
  return request.get('/banner')
}

// 获取音乐地址
export function getMusicUrl (musicId) {
  return request.get('/song/url', {
    params: {
      id: musicId
    }
  })
}

// 获取歌曲详情
export function getMusicMenu (musicId) {
  return request.get('/song/detail', {
    params: {
      ids: musicId
    }
  })
}

// 获取歌曲歌词
export function getMusicLyric (id) {
  return request.get('/lyric', {
    params: {
      id: id
    }
  })
}
